﻿using System;
using HAVNet.Intros.AST;


namespace HAVNet.Transformers.Walkers
{
    public delegate void ClassFound (ASTTypeDeclClass @class, int depth);

    public class WalkerClasses
    {
        public static void get (ASTNamespaceMemberDecls nmds, ClassFound f, int depth)
        {
            WalkerNamespaceMemberDecls.get (
                nmds,
                new NamespaceMemberDeclFound(
                    delegate (ASTNamespaceMemberDecl nmd, int depthx) {
                        if (nmd is ASTTypeDeclClass)
                            f((ASTTypeDeclClass)nmd, depthx);
                    })
                , 0);
        }
    }
}
